home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Tech Arsenal 1
/
Tech Arsenal (Arsenal Computer).ISO
/
tek-18
/
incremnt.zip
/
INCREMNT.DOC
< prev
Wrap
Text File
|
1992-10-02
|
3KB
|
71 lines
INCREMNT.BAT
-----------type INCREMNT at the prompt to get what is written below---------
SYNTAX = INCREMNT FILENAME EXT
INCREMNT = FIRST NAME OF PROGRAM ( STARTS PROGRAM )
FILENAME = FIRST NAME OF FILE TO INCREMENT ( and a space )
EXT = THE EXTENSION NAME OF THE FILE TO INCREMENT
There must be a space between the FILENAME and the EXTension.
INCREMNT.BAT makes incremented backup files of input %%1.%%2
and makes a batch file in the directory of the file you are in
that gives INCREMNT.BAT the filename.ext each time it is called.
MEANING type on your document and to save it call increment and
give it the FILENAME and EXTension. INCREMNT.BAT increments the
file and makes a batch file to make the next incrementing easier.
The incremented files sit in the first part of the alphabetically
organized directory and the file your are working on sits at the end.
This makes it easier to find and work on. Enjoy.
INCREMNT.BAT By Steve Elliott
--------------------------------- HOW TO --------------------------------
INCREMNT.BAT was made to assist in making backups as you build a text
file. The first time you want to save the text file you are making;
type and enter INCREMNT and the filename, space, and extension filename.
This will increment the first backup and make filename.bat.
FILENAME.BAT is a batch file that INCREMNT.BAT makes so it will be easier
to increment the next backup you make. EXAMPLE
INCREMNT README DOC
will make README.BAT and you will have the first backup in the directory
you are in named README.01
To make README.02 just type README to activate INCREMNT.BAT which calls
INCREMNT.BAT and increments the last README.DOC to a number one greater
than the last incremented README.DOC which is this case you will have
README.02 from README.DOC
It is a good idea to make a backup each time you implement major changes
in a text file. If you are using a program such as NORTON COMMANDER
you can just high light README.BAT and press enter and it increments
a backup for you. NC also keeps files alphabetically organized in the
directory. This is quite helpful since the backups are of a lesser
value and sit in the first part of the directory. Usually the file
you are working on ( README.DOC ) in this case will be the last
file in the directory should you have made a directory just for
the making of README.DOC .
-----------------------------WHAT DOES IT DO --------------------------------
It just uses the copy command from the DOS directory to make a backup for
you. It will make up to 20 backups and then you can change the name of
the file you are making and make 20 more backups. Such as, when you get to
README.20 rename README.DOC TO README1.DOC and do it all over again.
---------------------------------DIRECTORIES ---------------------------------
Put INCREMNT.BAT in a directory that is in path and you will be able to
increment any .DOC in any directory on your hard drive. Your path is
described in your AUTOEXEC.BAT . The directory DOS is always in path.
I hope it works as well for you as it has for me.
INCREMNT.BAT By Steve Elliott